
		<?php if(empty($register['Page']['id'])){ ?>
		<h4><img src="<?php echo $html->url('/img/admin/edit_register.png');?>" /> <?php __('add_pages');?></h4>
		<?php }else{?>
		<h4><img src="<?php echo $html->url('/img/admin/edit_register.png');?>" /> <?php __('edit_pages');?></h4>
		<?php } ?>

		<form id="f_register" action="<?php echo $html->url('add'); ?>" method="post" onSubmit="tinyMCE.triggerSave();event.returnValue = false; return false;">
			<div class="white_box white_box_last">
				<label><?php __('title_page');?></label>
				<?php echo $form->text('Page.title',array('value' => $register['Page']['title'], 'style' => 'width:690px;', 'class' => 'input_text'));?>

				<label><?php __('text_page');?></label>
				<?php echo $form->textarea('Page.text', array('value' => $register['Page']['text'], 'escape' => true));?>
				<!-- Carga TinyMce-->
				<?php $tinymce->load(array("id"=>"PageText","width"=>"708","height"=>"350","theme"=>"advanced"));?>
										
				<!-- Se publica o se guarda -->
				<?php echo $form->hidden('Page.public',array('value' => $register['Page']['public']));?>
				<!-- ID que pertenece el posts -->
				<?php echo $form->hidden('Page.id',array('value' => $register['Page']['id']));?>
			</div>
			<input type="submit" name="bot_guardar" class="input_button" value="<?php __('save');?>" onClick="javascript:$('PagePublic').value='0';" />
			<input type="submit" name="bot_publicar" class="input_button" value="<?php __('publish');?>" onClick="javascript:$('PagePublic').value='1';" />
		</form>
		
		<script type="text/javascript">
		//<![CDATA[
		Event.observe('f_register', 'submit', function(event){ajaxFormRequest('f_register','ajax_loading');}, false);
		//]]>
		</script>
